package com.cn.web.user.vo;

import com.cn.dic.annoations.DicAnnoations;
import com.cn.dic.serialize.DicSerialize;
import com.cn.user.UserDO;
import com.cn.user.UserItemDO;
import com.cn.web.user.vo.member.UserItemDTO;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.ArrayList;

/**
 * description: OpenUserInfo <br>
 * date: 23.7.18 10:11 <br>
 * author: cn_yaojin <br>
 * version: 1.0 <br>
 */
@Setter
@Getter
@Accessors(chain = true)
@ApiModel(value = "开放平台用户信息")
public class OpenUserInfo extends UserDO {

    @ApiModelProperty(value = "外部用户在子系统中的身份")
    private List<UserItemDTO> userRole = new ArrayList<>();

    @DicAnnoations(dicType = "gender")
    @JsonSerialize(using = DicSerialize.class)
    @ApiModelProperty(value = "性别")
    private String genderTxt;

    @DicAnnoations(dicType = "nation")
    @JsonSerialize(using = DicSerialize.class)
    @ApiModelProperty(value = "民族")
    private String nationTxt;

}
